/**
 * Created by yaojiewei on 2017/10/30.
 */

let env = process.env.NODE_ENV;//判断运行环境
console.log('运行环境' + env);

//登录权限模块
const ssoUrl = env === 'development'
  ? '/sso/'//开发环境地址 已起代理
  : env === 'production'
    ? '/'
    : 'https://debug.url.com';

//其他模块
const apiUrl = env === 'development'
  ? '/api/'//开发环境地址 已起代理
  : env === 'production'
    ? '/'
    : 'https://debug.url.com';

const utilUrl = env === 'development'
  ? '/util/'//开发环境地址 已起代理
  : env === 'production'
    ? '/'
    : 'https://debug.url.com';

//短信模块
const smsUrl = env === 'development'
  ? '/sms/'//开发环境地址 已起代理
  : env === 'production'
    ? '/'
    : 'https://debug.url.com';

//短信模块
const wxUrl = env === 'development'
  ? '/wx/'//开发环境地址 已起代理
  : env === 'production'
    ? '/'
    : 'https://debug.url.com';

//接口地址
const path = {
  upload:apiUrl+'manage/upload/upload',

  login: ssoUrl + 'sso/login',
  logout: ssoUrl + 'sso/logout',
  reg: ssoUrl + 'sso/reg',//用户注册

  sendSms: smsUrl + 'sms/vcode',//用户注册

  /*日志管理*/
  getLogList: ssoUrl + "manage/log/list",//日志列表
  delLog: ssoUrl + "manage/log/delete",//删除日志

  /*用户行为分析*/
  monthCounts: ssoUrl + "manage/behavior/month/counts",//每月用户增长量
  companyPercent: ssoUrl + "manage/behavior/company/user/percent",//不同类型公司的用户占比

  /*组织管理*/
  OrganizationCreate: ssoUrl + "manage/organization/create",//新增组织
  OrganizationDelete: ssoUrl + "manage/organization/delete",//删除组织
  OrganizationList: ssoUrl + "manage/organization/list",//组织列表
  OrganizationUpdate: ssoUrl + "manage/organization/update",//修改组织

  /*机构管理*/
  addCompany: ssoUrl + "manage/company/add",//增加机构
  getCompanyInfo: ssoUrl + "manage/company/companyInfo",//获取机构详情
  getCompanyList: ssoUrl + "manage/company/companylist",//获取机构列表
  deleteCompany: ssoUrl + "manage/company/delete",//删除机构
  getRelationCompanyList: ssoUrl + "manage/company/relationCompanyList",//关联机构列表
  updateCompany: ssoUrl + "manage/company/update",//修改机构

  /*权限管理*/
  createPermission: ssoUrl + "manage/permission/create",//新增权限
  deletePermission: ssoUrl + "manage/permission/delete",//删除权限
  PermissionList: ssoUrl + "manage/permission/list",//权限列表
  PermissionRole: ssoUrl + "manage/permission/role",//角色权限列表
  PermissionUpdate: ssoUrl + "manage/permission/update",//修改权限
  PermissionUser: ssoUrl + "manage/permission/user",//用户权限列表
  /*角色管理*/
  createRole: ssoUrl + "manage/role/create",//新增角色
  deleteRole: ssoUrl + "manage/role/delete",//删除角色
  listRole: ssoUrl + "manage/role/list",//角色列表
  permissionRole: ssoUrl + "manage/role/permission",//角色权限
  updateRole: ssoUrl + "manage/role/update",//修改角色

  /*用户管理*/
  createUser: ssoUrl + "manage/user/create",//新增用户
  deleteUser: ssoUrl + "manage/user/delete",//删除用户
  listUser: ssoUrl + "manage/user/list",//用户列表
  organizationUser: ssoUrl + "manage/user/organization",//用户组织
  permissionUser: ssoUrl + "manage/user/permission",//用户权限
  roleUser: ssoUrl + "manage/user/role",//用户角色
  updateUser: ssoUrl + "manage/user/update",//修改用户


  select: apiUrl + 'manage/widget/select/station',

  /*配送管理*/
  //delivery-require-controller : 需求订单管理
  getRequireOrderList: apiUrl + 'require/getOrderList',//需求订单列表
  addRequireOrder: apiUrl + 'require/addOrder',//新建需求订单
  getRequireOrderDetail: apiUrl + 'require/getDetail',//查看订单详情
  delRequireOrder: apiUrl + 'require/delOrder',//删除订单
  modRequireOrder: apiUrl + 'require/modifyOrder',//修改订单

  getBusinessOrderList: apiUrl + 'businessOrder/getOrderList',//业务订单列表
  addBusinessOrder: apiUrl + 'businessOrder/addBusinessOrder',//新建业务订单
  getBusinessOrderDetail: apiUrl + 'businessOrder/getOrderDetail',//查看业务订单详情
  cancelBusinessOrder: apiUrl + 'businessOrder/cancelOrder',//删除业务订单

  getCarList: apiUrl + 'car/getCarList',//槽车管理列表
  addCar: apiUrl + 'car/addCar',//获取站点详情
  modifyCar: apiUrl + 'car/modifyCar',//获取站点详情
  deleteCar: apiUrl + 'car/deleteCar',//删除槽车
  getCarDetail: apiUrl + 'car/getCarDetail',//删除槽车

  /*设备管理接口*/
  getOnlineEquipList: apiUrl + 'manage/equip/base/OnlineEquip/list',//获取在线设备列表
  addOnlineEquip: apiUrl + 'manage/equip/base/onlineEquip/add',//新增上线设备
  modOnlineEquip: apiUrl + 'manage/equip/base/onlineEquip/update',//修改在线设备
  changeOnlineEquip: apiUrl + 'manage/equip/base/onlineEquip/change',//更换在线设备
  getAddOnlineEquip: apiUrl + 'manage/equip/base/onlineEquip/add',//获取在线设备新增前数据

  getBasicEquipList: apiUrl + 'manage/equip/base/basicEquip/list',//获取设备列表
  addBasicEquip: apiUrl + 'manage/equip/base/basicEquip/add',//新增基础设备
  deleteBasicEquip: apiUrl + 'manage/equip/base/basicEquip/delete',//删除基础设备
  modBasicEquip: apiUrl + 'manage/equip/base/basicEquip/update',//修改基础设备
  getEquipType: apiUrl + 'manage/equip/base/basicEquip/widget',//获取设备类型列表
  getDiscardDetail: apiUrl + 'manage/equip/base/basicEquip/getDiscardDetailByCode',//废弃详情

  getEquipInspectList: apiUrl + 'manage/equip/equipInspect/setting/add',//获取巡检设置和记录新增前数据
  addEquipInspect: apiUrl + 'manage/equip/equipInspect/setting/add',//新增巡检设置
  getEquipInspect: apiUrl + 'manage/equip/equipInspect/setting/list',//获取巡检设置列表
  modEquipInspect: apiUrl + 'manage/equip/equipInspect/setting/update',//修改巡检设置

  getRecordList: apiUrl + 'manage/equip/equipInspect/record/list',//获取巡检记录列表
  addRecord: apiUrl + 'manage/equip/equipInspect/record/add',//新增巡检记录
  modRecord: apiUrl + 'manage/equip/equipInspect/record/update',//修改巡检记录

  getFaultList: apiUrl + 'manage/equip/fault/list',//故障单列表查看
  addFault: apiUrl + 'manage/equip/fault/add',//新增故障单
  cancelFault: apiUrl + 'manage/equip/fault/cancel',//取消故障单
  deleteFault: apiUrl + 'manage/equip/fault/delete',//删除故障单
  detailFault: apiUrl + 'manage/equip/fault/detail',//查看详情
  publishFault: apiUrl + 'manage/equip/fault/publish',//发布故障单

  getLinkMan: apiUrl + 'manage/widget/getRoleUserByStationId',//根据站id/角色查询关联的联系人信息
  getCompany: apiUrl + 'manage/widget/getCompanyByStationId',//根据站点id查询第三方维修公司列表
  getCompanyId: apiUrl + 'manage/widget/getCompanyByUserId',//根据用户id查询所在公司id

  handleResultInner: apiUrl + 'manage/equip/fault/handleResultInner',//加气站处理内部维修故障单（气站内部录入处理结果）
  handleResultThird: apiUrl + 'manage/equip/fault/handleResultThird',//加气站处理第三方维修公司故障单（待确认）


  updateFault: apiUrl + 'manage/equip/fault/vieFault',//第三方维修公司抢单
  vieFaultList: apiUrl + 'manage/equip/fault/vieFaultList',//抢单列表页面查询故障单
  handleFault: apiUrl + 'manage/equip/fault/handleFault',//第三方维修公司处理


  /*站点相关*/
  getLeaderList: apiUrl + 'manage/station/leaderList',//获取站长列表
  getStationList: apiUrl + 'manage/station/list',//获取站点列表
  addStation: apiUrl + 'manage/station/add',//新增站点
  updateStation: apiUrl + 'manage/station/update',//修改站点
  deleteStation: apiUrl + 'manage/station/delete',//删除站点
  getStationDetail: apiUrl + 'manage/station/getDetail',//获取站点详情
  addStationUser: apiUrl + 'manage/station/addStationUser',//新增站点员工前数据
  getStationUsers: apiUrl + 'manage/station/getStationUsers',//查看站点现有员工
  bundingBox: apiUrl + 'manage/station/bundingBox',//绑定LngBox

  /*监控预警*/
  getRealTimeData: apiUrl + 'manage/hbase/getRealTimeData',//获取实时数据
  getHistoryData: apiUrl + 'manage/hbase/getHistoryData',//获取历史数据

  getAlarmInfoList: utilUrl + 'manage/monitor/alarm/getAlarmInfoList',//获取报警信息列表
  getAlarmDetail: utilUrl + 'manage/monitor/alarm/getAlarmDetail',//获取报警信息详情
  handleAlarmInfo: utilUrl + 'manage/monitor/alarm/handleAlarmInfo',//处理报警信息
  getStationsByDistrictCode: apiUrl + 'manage/widget/getStationsByDistrictCode',//获取站点

  getRoutineInfoList: utilUrl + 'manage/monitor/routine/routine/list',//获取常规巡检列表
  // getStationsByUserId: apiUrl + 'manage/widget/getStationsByUserId',//根据用户id得到站点列表
  getRoutineDetail: utilUrl + 'manage/monitor/routine/routine/detail',//获取常规巡检详情
  getRoutinePerson: utilUrl + 'manage/monitor/routine/routine/user',//获取常规巡检人
  // getRoutineProject: utilUrl + 'manage/monitor/routine/getRoutineProject',//获取常规巡检项目
  modifyRoutine: utilUrl + 'manage/monitor/routine/modifyRoutine',//修改常规巡检
  addRoutine: utilUrl + 'manage/monitor/routine/addRoutine',//录入常规巡检

  getShiftInfoList: utilUrl + 'manage/monitor/handover/getShiftInfoList',//获取交接班巡检列表
  getShiftDetail: utilUrl + 'manage/monitor/handover/getShiftDetail',//获取交接班巡检详情
  addShiftReport: utilUrl + 'manage/monitor/handover/addShiftReport',//录入交班报告
  addSuccessionReport: utilUrl + 'manage/monitor/handover/addSuccessionReport',//录入接班报告
  modifyShift: utilUrl + 'manage/monitor/handover/modifyShift', //修改交接班
  getUserList: utilUrl + 'manage/monitor/handover/getUserList',//获取交接班巡检人员


  /*LNG BOX*/
  getLngBoxList: apiUrl + 'manage/lngBox/base/list',//获取box列表
  addLngBox: apiUrl + 'manage/lngBox/base/add',//新增box信息
  deleteLngBox: apiUrl + 'manage/lngBox/base/delete',//删除box信息
  updateLngBox: apiUrl + 'manage/lngBox/base/update',//修改box信息
  lngBoxWidget:  apiUrl + 'manage/lngBox/base/widget',//box下拉内容

  getTempleFactor: apiUrl + 'manage/lngBox/factorTemple/list',//模板因子列表
  addTempleFactor: apiUrl + 'manage/lngBox/factorTemple/add',//新增模板因子
  deleteTempleFactorByIds: apiUrl + 'manage/lngBox/factorTemple/deleteByIds',//批量删除模板因子
  deleteTempleFactor: apiUrl + 'manage/lngBox/factorTemple/deleteByName',//名称删除模板因子
  updateTempleFactor: apiUrl + 'manage/lngBox/factorTemple/update',//修改模板因子
  getTempleFactorDetail: apiUrl + 'manage/lngBox/factorTemple/getDetailList',//查看模板因子详情

  getCompanyFactorList: apiUrl + 'manage/lngBox/stationFactor/getCompanyFactorList',//获取因子模板公司信息
  getStationFactor: apiUrl + 'manage/lngBox/stationFactor/getListByBoxId',//站点因子查询
  updateStationFactor: apiUrl + 'manage/lngBox/stationFactor/update',//修改站点因子
  addStationFactor: apiUrl + 'manage/lngBox/stationFactor/add',//新增站点因子
  deleteStationFactor: apiUrl + 'manage/lngBox/stationFactor/delete',//删除站点因子
  importStationFactor: apiUrl + 'manage/lngBox/stationFactor/importTemple',//模板导入
  importTempletStationFactor: apiUrl + 'manage/lngBox/stationFactor/importTemple',//模板导入
  uploadToLngBox: apiUrl + 'manage/lngBox/stationFactor/command/upload',//因子下发令
  uploadToLngBoxResult: apiUrl + 'manage/lngBox/stationFactor/command/result',//因子下发令结果
  uploadList: apiUrl + 'manage/lngBox/stationFactor/list/upload',//已经上传成功的因子

  getFirmwareVersion: apiUrl + 'manage/lngBox/firmwareVersion/list',//获取固件版本列表
  addFirmwareVersion: apiUrl + 'manage/lngBox/firmwareVersion/add',//新增固件版本
  deleteFirmwareVersion: apiUrl + 'manage/lngBox/firmwareVersion/delete',//删除固件版本
  updateFirmwareVersion: apiUrl + 'manage/lngBox/firmwareVersion/update',//修改固件版本


  /*下拉*/
  getSelectStation: apiUrl + 'widget/select/station',//获取站点查询
  getStationsByCompanyId: apiUrl + 'manage/widget/getStationsByCompanyId',//根据公司id得到站点列表

  /*统计分析*/
  getAlarmCount: apiUrl + 'manage/statistics/getAlarmCount',//气站预警统计
  getAnalysisByProvinceCode: apiUrl + 'manage/statistics/getAnalysisByProvinceCode',//省份消耗分析
  getBeReplacedEquip: apiUrl + 'manage/statistics/getBeReplacedEquip',//待更换设备统计
  getConsumeByLocation: apiUrl + 'manage/statistics/getConsumeByLocation',//气站消耗统计(按照地区分组)
  getConsumeByTime: apiUrl + 'manage/statistics/getConsumeByTime',//气站消耗统计(按照时间分组)
  getStationCountByLocation: apiUrl + 'manage/statistics/getStationCountByLocation',//站点分布
  getStationReserves: apiUrl + 'manage/statistics/getStationReserves',//气站储量统计

  /*我的LNG*/
  getUpdateMyLngUser: ssoUrl + 'manage/user/update/selectInfo',//修改用户前数据
  updateMyLngUser: ssoUrl + 'manage/user/update/updateUserInfo',//用户更新
  updateMyLngPassword: ssoUrl + 'manage/user/update/upadteUserPassword',//修改密码
  setMyLngMessage: apiUrl + 'manage/mylng/user/setMessage',//消息设置
  getMessageSettingList: apiUrl + 'manage/mylng/messageSetting/list',//消息设置列表查看
  getMyLngMessageList: apiUrl + 'manage/mylng/message/list',//消息列表
  deleteMyLngMessage: apiUrl + 'manage/mylng/message/delete',//删除消息
  updateMyLngMessage: apiUrl + 'manage/mylng/message/update',//更新消息状态为已读
  getNotReadCount: apiUrl + 'manage/mylng/message/getNotReadCount',//得到未读消息个数

  /*首页*/
  getShowIndexInfo: apiUrl + 'manage/index/showIndexInfo',//获取首页内容

  /*地图信息*/
  getMapInfo: apiUrl + 'manage/amap/station/info',//获取首页内容

  /*微信*/
  wxGetToken : wxUrl + 'user/info',
  wxReg : wxUrl + 'user/reg',
  wxJssdk : wxUrl + 'jssdk',

};

export default path;
